package gee

import pb "geecache7/gee/geecachepb"

type PeerPicker interface {
	// PickPeer 根据key选择相应节点的PeerGetter
	PickPeer(key string) (peer PeerGetter, ok bool)
}

//type PeerGetter interface {
//	// Get 从对应的group中查找缓存值
//	Get(group string, key string) ([]byte, error)
//}

type PeerGetter interface {
	// Get 从对应的group中查找缓存值
	Get(in *pb.Request, out *pb.Response) error
}
